<?php

class User_model extends CI_Model {

    public function __construct() {
        parent::__construct();
    }

    public function insert($user) {
        $this->db->insert('user', $user);
    }

    public function get($name) {
        $query = $this->db->get_where('user', array('username' => $name), 1, 1);
        return $query->result();
    }
    
    public function increase_hand_number($name) {
        $query = $this->db->get_where('user', array('username' => 'vietanh-it'), 1, 1);
//        var_dump($query);
//        var_dump($query->result());
//        exit();
        return 4;
//        return $query->result();
    }
}
